/***********************************************************************
    filename:   DaterOrganization.h
    created:    20/5/2012
    author:     4Ys

    purpose:    Defines class for Organization objects
*************************************************************************/

#ifndef _DaterOrganization_h_
#define _DaterOrganization_h_

#include "DaterUser.h"
#include "DaterEvent.h"

namespace Dater
{
	/*!
	\brief
		An entity class contains 21 year calendars front and back.
	*/
	class Organization
	{
	public:
		Organization(std::string name, int adminID);
		~Organization();
		int getOid(){return _oid;}
		void setOid(int oid){_oid = oid;}
		std::string getName(){return _name;}
		void setName(std::string name){_name = name;}
		void addUser(int uid){_userList.push_back(uid);}
		void deleteUser(int uid);
		void addEvent(Event* evt){_eventList.push_back(evt);}
		void deleteEvent(int eid);
	private:
		int _oid;
		std::string _name;
		std::vector<int> _userList;
		int _adminID;
		std::vector<Event*> _eventList;
	};

}

#endif